package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/3/29.
 * 包名：com.xintonghua.bussiness.bean
 */

public class GoodsManageBean implements Parcelable {

    /**
     * imgs : ../../img/upload/hy-upload-product2_03.jpg
     * price : 100
     * name : 洗发水
     * id : 3
     * inventory : 18 库存
     * productCount : 0 销量
     */

    private String imgs;
    private double price;
    private String name;
    private int id;
    private int inventory;
    private int productCount;

    //自己加的字段
    private int ShangPingNumber=1;

    public int getShangPingNumber() {
        return ShangPingNumber;
    }

    public void setShangPingNumber(int shangPingNumber) {
        ShangPingNumber = shangPingNumber;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public int getProductCount() {
        return productCount;
    }

    public void setProductCount(int productCount) {
        this.productCount = productCount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgs);
        dest.writeDouble(this.price);
        dest.writeString(this.name);
        dest.writeInt(this.id);
        dest.writeInt(this.inventory);
        dest.writeInt(this.productCount);
    }

    public GoodsManageBean() {
    }

    protected GoodsManageBean(Parcel in) {
        this.imgs = in.readString();
        this.price = in.readDouble();
        this.name = in.readString();
        this.id = in.readInt();
        this.inventory = in.readInt();
        this.productCount = in.readInt();
    }

    public static final Parcelable.Creator<GoodsManageBean> CREATOR = new Parcelable.Creator<GoodsManageBean>() {
        @Override
        public GoodsManageBean createFromParcel(Parcel source) {
            return new GoodsManageBean(source);
        }

        @Override
        public GoodsManageBean[] newArray(int size) {
            return new GoodsManageBean[size];
        }
    };
}
